//
//  NSDate+ZH_Helper.h
//  ZH_Helper
//
//  Created by caixiang on 2017/10/14.
//  Copyright © 2017年 蔡翔. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (ZH_Helper)

/**
 时间戳转化为是刚刚、几分钟前、几小时前、几天前等(与当前时间相比)

 @param timeStamp timeStamp description
 @return return value description
 */
+ (NSString *)currentDateWithRerence:(NSTimeInterval)timeStamp;

/**
 时间转化为是刚刚、几分钟前、几小时前、几天前等(自定义时间相比)

 @param reference reference description
 @return return value description
 */
- (NSString *)prettyDateWithReference:(NSDate *)reference;

/**
 时间戳转化为当前时间

 @param time time description
 @return return value description
 */
+ (NSString *)timeIntervalToNSDate:(NSTimeInterval)time;

@end
